package com.example.weblending.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.weblending.domain.ApplyNum;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.weblending.domain.ApplyUnset;
import com.example.weblending.domain.User;

/**
 *
 */
public interface ApplyNumService extends IService<ApplyNum> {

    boolean apply(User user,int type,int num);

    boolean pass(ApplyNum applyNum,User operator);
    boolean reject(ApplyNum applyNum, User operator);

    Page<ApplyNum> getListyId(long page, long limit, User user);

    Page<ApplyNum> getHistoryId(long page, long limit, User user);


    int getNum(User user,boolean finish);
}
